package com.dhnsoft.boot3.rpc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dhn
 * @version 1.0
 * @date 2023-09-12 10:06
 * @Desc
 */
@Service
public class WeatherService {

    @Autowired
    WeatherInterface weatherInterface;

    public Mono<String> weather(String city)
    {
        Mono<String> weather = weatherInterface.getWeather(city, "APPCODE a59f158d3cbb47149436cf4f88942cd1");
        return weather;
    }
}
